package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_xiuxian_tripod_upgrade", desc = "凡人修仙传-虚天鼎升级日志", autoSave = true, uploadCk = true)
public class LogXiuXianTripodUpgrade extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "升级前等级")
    private int oldLv;

    @FieldTypeAnnotation(desc = "升级后等级")
    private int newLv;

    public LogXiuXianTripodUpgrade(long userId, int activityId, int oldLv, int newLv) {
        this.userId = userId;
        this.activityId = activityId;
        this.oldLv = oldLv;
        this.newLv = newLv;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
